//
//  XDHeader_Color.h
//  HengHuaSupervision
//
//  Created by XD-XY on 3/20/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//  颜色值宏

#pragma mark =====================颜色值常用宏=============================

//RGB color macro 16进制
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

//RGB color macro with alpha 16进制
#define UIColorFromRGBWithAlpha(rgbValue,a) [UIColor \
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \
blue:((float)(rgbValue & 0xFF))/255.0 alpha:a]

//RBG color
#define RGBA(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]

//RBG color with alpha
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]


#pragma mark =========================App color==========================
//APP底色
#define mApp_Bg_color UIColorFromRGB(0xe5e5e5)

//导航栏
#define mNav_title_Color  RGBA(255,255,255)

//首页
#define mHomepagelist_Title_Color RGBA(0,55,76)
#define mHomepagelist_Text_Color  RGBA(74,74,74)
#define mHomepagesegmented_Title_Normal_Color  RGBA(2,93,159)
#define mHomepagesegmented_Title_Select_Color  RGBA(255,255,255)
#define mHomepage_Head_Text_Color     RGBA(0,35,62)


//标签管理
#define mLabelEdit_Title_Color  RGBA(43,43,43)

//提交页面
#define mPress_Title_Color   RGBA(136,139,144)
#define mPress_Content_Color RGBA(43,43,43)